<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>属性列表</title>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/bootstrap/css/bootstrap.min.css" media="screen">
     <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/center.css" media="screen">
	<script type="text/javascript" src="__PUBLIC__/js/jquery-2.1.4.min.js"></script>
	<style>
		 #pages a{ background-color: #444444;
            border-left: 1px solid rgba(255, 255, 255, 0.15);
            border-right: 1px solid rgba(0, 0, 0, 0.5);
            box-shadow: 0 1px 0 rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 255, 255, 0.15) inset;
            color: #fff;
            cursor: pointer;
            display: block;
            float: left;
            font-size: 12px;
            height: 20px;
            line-height: 20px;
            outline: medium none;
            padding: 0 10px;
            text-align: center;
            text-decoration: none;
        }
        #pages span{
            background-color: #88a9eb;
            background-image: none;
            border: medium none;
            box-shadow: 0 0 4px rgba(0, 0, 0, 0.25) inset;
            color: #323232;
            cursor: pointer;
            display: block;
            float: left;
            font-size: 12px;
            height: 20px;
            line-height: 20px;
            outline: medium none;
            padding: 0 10px;
            text-align: center;
            text-decoration: none;
        }

	

	</style>
</head>
<body>
	<center>
	
	<div class="panel panel-primary">
						  <div class="panel-heading">属性列表</div>
						  <div class="panel-body">
						<!--   <form action="{:U('Admin/Goodstype/index')}" method="GET">
							
							<div style="float:right"><input type="text" name="keywords"><input type="submit"></div>
						</form> -->
						   
						  </div>
						  	<table class="table table-striped table-hover table-condensed table-bordered" >
					
					<tr>
						<th>属性ID</th>
						<th>分类名称</th>
						<!-- <th>所属父类</th> -->
						<th>属性名称</th>
						<th>属性值组</th>
						<th>操作</th>
					</tr>
				<foreach name = 'attrArr' item = 'val'>
					<tr>
						<td>{$val.id}</td>
						<td>{$val.type_name}</td>
						
						</td>
						<td>{$val.attr_name}</td>
						<td style="overflow:hidden">
							
							<foreach name = 'val.attr_val' item = 'attr'>
								
									{$attr}&nbsp;
								

								
							
							</foreach>

						</td>

						<!-- <th></th> -->
					
						<td align="center">
						
						<a href='{:U("Admin/Attribute/edit",array('id'=>$val["id"],'pid'=>$val["type_pid"]))}'><button class='btn btn-primary'>修改</button></a>

						<a href="{:U("Admin/Attribute/del",array('id'=>$val["id"],'pid'=>$val["pid"]))}"><button class="btn btn-danger">删除</button></a>

						<a href='{:U("Admin/Attribute/newVal",array('id'=>$val["id"],'pid'=>$val["type_pid"]))}'><button class='btn btn-primary'>新增属性值</button></a>
						
						</td>

					</tr>
				</foreach>
				<tr class="success">
					<td></td>
					<td></td>
					<td></td>
					<td></td>
					<td></td>
					<td id="pages"><div style="float:right">共{$totalPage}页&nbsp;&nbsp;{$page}</div></td>
				</tr>
	</table>
	</div>
	</center>
</body>
</html>

